<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
	<h2>Sign in</h2>
	<table id="innerTable">
		<tr>
			<td><spring:url var="authUrl"
					value="/static/j_spring_security_check" />
				<form method="post" class="signin" action="${authUrl}">
					<table class="body">
						<tr>
							<th align="left"><label for="username_or_email">Username:
							</label></th>
							<td align="left"><input id="username_or_email"
								name="j_username" type="text" /></td>
						</tr>
						<tr>
							<th align="left"><label for="password">Password: </label></th>
							<td align="left"><input id="password" name="j_password"
								type="password" />
						</tr>
						<tr>
						<td></td>
						<td>
						 <c:if test='${loginError=="t"}'>
							Authentication error
						</c:if>
						</td>
						</tr>
						<tr>
							<td>Remember me: <input type="checkbox"
								name="_spring_security_remember_me" /></td>
							<td><input name="commit" type="submit" value="Sign In"
								class="submit" /></td>
						</tr>
						<tr>
							<td align="left"></td>
						</tr>
						<tr>
							<td><spring:url value="/registration" var="reg_url"
									htmlEscape="true" /> <a href="${reg_url}">Don't have
									account yet? Sign up!</a></td>
						</tr>
					</table>
				</form></td>
		</tr>
	</table>
	<script type="text/javascript">
		document.getElementById('username_or_email').focus();
	</script>

